package sg.edu.nus.iss.phoenix.authenticate.delegate;

import java.util.List;

import sg.edu.nus.iss.phoenix.authenticate.entity.User;
import sg.edu.nus.iss.phoenix.authenticate.service.UserService;

public class UserDelegate {
	private UserService service;

	public UserDelegate() {
		super();
		service = new UserService();
	}

	public List<User> findAll() {
		return service.findAllUsers();
	}

	public void insert(User user) {
		service.insertUser(user);

	}

	public void update(User user) {
		service.updateUser(user);

	}


	public void deleteUser(User user1) {
		service.deleteUser(user1);
		
	}

	public User loadUser(User user2) {
		return service.loadUser(user2);
	}

}
